package com.example.shopping.service;

import com.example.shopping.entity.Goods;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface GoodsService {
    List<Goods> findAll();

    Goods findByGid(String gid);

    void updateGood(Goods updatedGood);

    void deleteGoodsByGid(String gid);

    void addGood(Goods good);

    Page<Goods> findGoods(String goodsname, String gid, String goodstype, Pageable pageable);
}
